cosine

This function returns the cosine of an angle of x radians.

double cosine(double x)

Parameters:
x
a value representing an angle expressed in radians that will be calculated.

Return value:
The cosine of x.

Remarks:
None.

Example:
void main()
{
double param=60.0;
double result=cosine(param*3.14159/180);
alert("cosine test", "The cosine of "+param+" is "+result+".");
}